package com.ruifu.pls.entity;

/**
 * BasCustomerId entity. @author MyEclipse Persistence Tools
 */

public class BasCustomerId implements java.io.Serializable {

    // Fields

    private String customerid;
    private String customerType;

    // Constructors

    /** default constructor */
    public BasCustomerId() {
    }

    /** full constructor */
    public BasCustomerId(String customerid, String customerType) {
        this.customerid = customerid;
        this.customerType = customerType;
    }

    // Property accessors


    public String getCustomerid() {
        return this.customerid;
    }

    public void setCustomerid(String customerid) {
        this.customerid = customerid;
    }


    public String getCustomerType() {
        return this.customerType;
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof BasCustomerId))
            return false;
        BasCustomerId castOther = (BasCustomerId) other;

        return ((this.getCustomerid() == castOther.getCustomerid()) || (this
                .getCustomerid() != null && castOther.getCustomerid() != null && this
                .getCustomerid().equals(castOther.getCustomerid())))
                && ((this.getCustomerType() == castOther.getCustomerType()) || (this
                .getCustomerType() != null
                && castOther.getCustomerType() != null && this
                .getCustomerType().equals(castOther.getCustomerType())));
    }

    public int hashCode() {
        int result = 17;

        result = 37
                * result
                + (getCustomerid() == null ? 0 : this.getCustomerid()
                .hashCode());
        result = 37
                * result
                + (getCustomerType() == null ? 0 : this.getCustomerType()
                .hashCode());
        return result;
    }

}